/**
 * @Description : copy.js
 * @Author : Tomi
 * @Email : lintaoming@qq.com
 * @Create : 2017/5/8
 */
'use strict';

const gulp = require('gulp');
const config = require('../config');

gulp.task('copyFont', () => {
    return gulp.src(config.font.src+'/**/*')
    .pipe(gulp.dest(config.font.dest));
});

gulp.task('copyAssets', () => {
    return gulp.src(config.assets.src+'/**/*')
    .pipe(gulp.dest(config.assets.dest));
});

gulp.task('copyLib', () => {
    return gulp.src(config.script.lib+'/**/*')
    .pipe(gulp.dest(config.script.dest+'/lib'));
});

gulp.task('copyCore', () => {
    return gulp.src([config.script.srcDev+'/*.js', '!'+config.script.src])
    .pipe(gulp.dest(config.script.dest));
});